package com.dbb.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springside.modules.orm.Page;

import com.dbb.dao.ContactDao;
import com.dbb.entity.Contact;

@Component
public class ContactService {
	@Autowired
	private ContactDao dao;
	public void saveContact(Contact contact) {
		//TODO:
	}
	
	public Contact getContact(Long contactId) {
		//TODO:
		return null;
	}
	
	public List<Contact> getContact(String info) {
		return dao.getAll();
	}
	public void getAll(Page page) {
		dao.getAll(page);
	}
	
}
